package main.java.chessfootball.model.exception;

import main.java.chessfootball.rules.checker.AbstractChecker;

/**
 * User: Igor
 * Date: 12.06.2011
 * Time: 7:46:02
 */
public class RuleViolationException extends Exception
{
	private Class<? extends AbstractChecker> checkClass;

	public RuleViolationException(Class<? extends AbstractChecker> checkClass)
	{
		this.checkClass = checkClass;
	}

	public RuleViolationException(String message)
	{
		super(message);
	}

	public RuleViolationException(String message, Throwable cause)
	{
		super(message, cause);
	}

	public RuleViolationException(Throwable cause)
	{
		super(cause);
	}

	public Class<? extends AbstractChecker> getCheckClass()
	{
		return checkClass;
	}
}
